<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" custReport="width=device-width, initial-scale=1.0">
    <meta name="renderer" custReport="webkit">
    <meta http-equiv="X-UA-Compatible" custReport="ie=edge">
    <link href="../../../eui/plugins/layui/css/layui.css" rel="stylesheet" media="all"/>
    <link href="../../../eui/css/components.min.css" rel="stylesheet" media="all"/>
    <link href="../../../eui/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" media="all"/>
</head>

<body>
	<script src="../../../eui/js/base.js"></script>
	<script src="../../../eui/plugins/layui/layui.js"></script>
	<script src="../../../eui/plugins/jquery.min.js"></script>
	<script src="edit.js"></script>
<div class="layui-container"> 
	<div class="layui-row">
		<div class="layui-col-md6">
			<form id="lForm" class="layui-form layui-form-pane" lay-filter="lForm" style="padding-top: 10px;padding-left: 10px">
		        <input type="hidden"  name="id" value="">
		        <div class="layui-form-item">
					<div class="layui-inline">
						<label class=" layui-form-label" style="width:120px;" >数据流名称</label>
						<div class="layui-input-inline" style="width:300px;">
							<input type="text" lay-verify="required" placeholder=""  name="datastreamName"  autocomplete="off"  class="layui-input">
						</div>
					</div>
		         </div>
		        <div class="layui-form-item">
					<div class="layui-inline">
						<label class=" layui-form-label" style="width:120px;" >关键字段</label>
						<div class="layui-input-inline" style="width:300px;">
							<input type="text" lay-verify="required" placeholder=""  name="keyColumn"  autocomplete="off"  class="layui-input">
						</div>
					</div>
		         </div>
		        <div class="layui-form-item">
					<div class="layui-inline">
						<label class=" layui-form-label" style="width:120px;" >数据流描述</label>
						<div class="layui-input-inline" style="width:300px;">
							<input type="text" lay-verify="required" placeholder=""  name="datastreamDesc"  autocomplete="off"  class="layui-input">
						</div>
					</div>
		         </div>
				<div class="layui-form-item">
					 <div class="layui-inline">
						<label class=" layui-form-label" style="width:120px;" >关联数据源</label>
						<div class="layui-input-inline" style="width:300px;">
							<select id="datasourceId" name="datasourceId" lay-filter="datasourceId" lay-verify="required"></select>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					 <div class="layui-inline">
						<label class=" layui-form-label" style="width:120px;" >支持表达式</label>
						<div class="layui-input-inline" style="width:300px;">
							<select id="expable" name="expable" lay-filter="expable" lay-verify="required"></select>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					  <label class="layui-form-label" style="width:120px">SQL</label>
					  <div class="layui-input-block">
							<textarea type="text" name="sqlContent"  autocomplete="off"  class="layui-input" style="width:400px; height: 340px"></textarea>
					  </div>
				</div>
			    <div class="layui-form-item" style="padding-top: 20px;text-align: center">
					<div>
						<button type="button" class="layui-btn layui-btn-primary" onclick="closePage()">取消</button>
						<button class="layui-btn" lay-submit lay-filter="save">保存</button>
					</div>
				</div>
		    </form>
		</div>
		<div class="layui-col-md6">
		    <div class="portlet-body">
		        <div class="dataTables_wrapper" style="margin-top: 0px!important" >
					<table id="fieldTable" class="layui-table" lay-filter="fieldTable"> </table>
		        </div>
		    </div>
		</div>
	</div>
</div>
<script type="text/html" id="colbar">
  <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<script type="text/html" id="tablebar">
	<div class="layui-inline">
		<label class=" layui-form-label" style="width:120px;" >字段中文名：</label>
		<div class="layui-input-inline">
			<input id="addFieldName" type="text" placeholder="请输入字段中文名称" autocomplete="off"  class="layui-input">
		</div>
		<button class="layui-btn layui-btn-sm" lay-event="add">添加</button>
	</div>
</script>
</body>
</html>